app.service('goodsTemplateService',function($http){

    //读取列表数据绑定到表单中
    this.findAll=function(){
        return $http.get('../goodsTemplateController/findAll.do');
    }
    //查询详情
    this.findOne=function(id){
        return $http.get('../goodsTemplateController/findOne.do?id='+id);
    }
    //查询规格名字及选项
    this.findSpecIdAndOption=function (id) {
        return $http.get("../goodsTemplateController/findSpecIdAndOption.do?id="+id);
    }
});
